﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace WmsApp.WmsService
{
    public partial class Customer : IWcfState
    {
        public static Customer CreateCustomer(String ownerNo)
        {
            var customer = new Customer
            {
                OWNERNO = ownerNo,
                WcfEntityState = System.Data.EntityState.Added
            };
            customer.BindPropertyChanged();
            return customer;
        }

        public void BindPropertyChanged()
        {
            this.PropertyChanged += WmsApp.EntityControl.PropertyChangedHandler.EntityObjectPropertyChanged;
        }
    }
}
